package a.f.l;

import a.c.e;
import a.f.o;

import java.awt.geom.Rectangle2D;

class ob
{
  static final double a = 4.0D;
  private final kb b;
  private final double c;
  private final Rectangle2D d;
  private final boolean e;
  private final boolean f;
  private e h;
  
  ob(kb paramkb)
  {
    this(paramkb, false, null);
  }
  
  ob(kb paramkb, boolean paramBoolean, Rectangle2D paramRectangle2D)
  {
    this.b = a(paramkb);
    this.c = paramkb.a().a(paramkb.d());
    if (i == 0) {}
    this.d = (paramRectangle2D != null ? paramRectangle2D : new Rectangle2D.Double(paramkb.b(), paramkb.f(), paramkb.e() - paramkb.b(), paramkb.f() - paramkb.c()));
    this.f = paramBoolean;
    if (i == 0) {}
    this.e = (paramkb.c() == paramkb.f());
  }
  
  boolean a()
  {
    return this.e;
  }
  
  kb b()
  {
    return this.b;
  }
  
  Rectangle2D c()
  {
    return this.d;
  }
  
  double d()
  {
    return this.c;
  }
  
  double e()
  {
    if (g.Cc == 0) {}
    return this.e ? this.b.c() : this.b.b();
  }
  
  boolean f()
  {
    return this.f;
  }
  
  void a(o paramo)
  {
    int i = g.Cc;
    if (i == 0) {
      if (this.h != null) {
        return;
      }
    }
    double d1 = Math.abs(this.b.e() - this.b.b());
    double d2 = Math.abs(this.b.f() - this.b.c());
    double d3 = Math.min(this.b.b(), this.b.e());
    double d4 = Math.min(this.b.c(), this.b.f());
    double d5;
    if (i == 0) {
      if (d1 < 4.0D)
      {
        d5 = (4.0D - d1) / 2.0D;
        d1 = 4.0D;
        d3 -= d5;
      }
    }
    if ((i != 0) || (d2 < 4.0D))
    {
      d5 = (4.0D - d2) / 2.0D;
      d2 = 4.0D;
      d4 -= d5;
    }
    this.h = paramo.i();
    paramo.b(this.h, d1, d2);
    paramo.c(this.h, d3, d4);
  }
  
  e g()
  {
    return this.h;
  }
  
  static kb a(kb paramkb)
  {
    int i = g.Cc;
    if (i == 0) {
      if (paramkb.b() < paramkb.e()) {
        return paramkb;
      }
    }
    if (i == 0)
    {
      if (paramkb.b() > paramkb.e()) {
        return new kb(paramkb.d(), paramkb.a());
      }
      if (i != 0) {}
    }
    else if (paramkb.c() <= paramkb.f())
    {
      return paramkb;
    }
    return new kb(paramkb.d(), paramkb.a());
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.ob

 * JD-Core Version:    0.7.0.1

 */